<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>init (BattingAppearance)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/batting_appearance.rb, line 12</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">element</span>)
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pid</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'id'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">batter_name</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'name'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">pos</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'pos'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bo</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'bo'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">ab</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'ab'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">po</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'po'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">r</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'r'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bb</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'bb'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">a</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'a'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">t</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'t'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sf</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'sf'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">h</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'h'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">e</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'e'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">d</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'d'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">hbp</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'hbp'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">so</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'so'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">hr</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'hr'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">rbi</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'rbi'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lob</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'lob'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">sb</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'sb'</span>]
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">avg</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'avg'</span>]  <span class="ruby-comment cmt"># season avg</span>
      <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">fldg</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">'fldg'</span>]
    <span class="ruby-keyword kw">end</span></pre>
</body>
</html>